for loop in python with explaination